<template>
    <div class="zsdx-produces">
        <div class="section">
            <div
                class="section-modules-title"
                style="margin-top: 0.8rem;margin-bottom: 0.4rem;"
            >
                主要产品
            </div>

            <div class="products-list">
                <div
                    v-for="(item, index) in productList"
                    :key="index"
                    class="product-item"
                    :style="'background-image: url(' + item.bgUrl + ')'"
                >
                    <template v-if="item.id == 1">
                        <div class="product-left">
                            <p class="product-title">{{ item.name }}</p>
                            <p class="product-info">
                                {{ item.desc }}
                            </p>

                            <div v-if="item.id === 1" class="qr-container">
                                <div class="qr-image">
                                    <img
                                        src="//cdn.zsdx.cn/zsdx-website/2020/images/common/downloadQRCode.png"
                                        alt=""
                                    />
                                </div>
                                <p class="qr-title">扫码下载</p>
                            </div>
                        </div>
                        <div
                            class="product-right"
                            :style="
                                'background-image: url(' + item.rightUrl + ')'
                            "
                        ></div>
                    </template>

                    <template v-else>
                        <div class="vertical-introduce">
                            <p class="product-title">{{ item.name }}</p>
                            <p class="product-info">
                                {{ item.desc }}
                            </p>
                            <div
                                class="product-shotcut"
                                :style="
                                    'background-image: url(' +
                                        item.rightUrl +
                                        ')'
                                "
                            ></div>
                            <!-- <a href="javascript;" class="go-detail-btn"
                                >查看详情
                            </a> -->
                        </div>
                    </template>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'ZsdxProduces',
    data() {
        return {
            productList: [
                {
                    id: 1,
                    name: '掌上大学APP',
                    desc: '企业的校园事业部,让全球在校大学生成为精英的互动平台',
                    bgUrl:
                        '//cdn.zsdx.cn/zsdx-website/2020mobile/images/product_bg_1.png',
                    rightUrl:
                        '//cdn.zsdx.cn/zsdx-website/2020mobile/images/product_right_1.png'
                },
                {
                    id: 2,
                    name: '大数据系统',
                    desc:
                        '该大数据系统依托于2017年联合温州大学成立的大数据研究院；各大学校的大学生男女比例，消费指数，出国情况等；',
                    bgUrl:
                        '//cdn.zsdx.cn/zsdx-website/2020mobile/images/product_bg_2.png',
                    rightUrl:
                        '//cdn.zsdx.cn/zsdx-website/2020mobile/images/shujuzhongxin.png',
                    jumpUrl: '//data.zsdx.cn'
                },
                {
                    id: 3,
                    name: '全国媒介系统',
                    desc:
                        '该系统覆盖全国70%高校，包含线上线下的媒介信息资源。线上：校园公众号，校园KOC，社群，短视频自媒体线下：路演场地，桌贴，围栏广告等',
                    bgUrl:
                        '//cdn.zsdx.cn/zsdx-website/2020mobile/images/product_bg_3.png',
                    rightUrl:
                        '//cdn.zsdx.cn/zsdx-website/2020mobile/images/meijietoufang.png'
                },
                {
                    id: 4,
                    name: '校园代理管理系统',
                    desc:
                        '掌上大学依据六年与大学生合作的经验，独立研发出远程监控和管理校园代理动作的“神器”',
                    bgUrl:
                        '//cdn.zsdx.cn/zsdx-website/2020mobile/images/product_bg_4.png',
                    rightUrl:
                        '//cdn.zsdx.cn/zsdx-website/2020mobile/images/xiaoyuandashi.png'
                },
                {
                    id: 5,
                    name: '校园内参',
                    desc:
                        '6年资源沉淀的集中体现，涵盖数据报告大学生蓝书，调研报告，客户案例复盘报告等，帮助企业的校园部门人员快速提高专业度，帮助企业无限放大预算的投入产出比',
                    bgUrl:
                        '//cdn.zsdx.cn/zsdx-website/2020mobile/images/product_bg_5.png',
                    rightUrl:
                        '//cdn.zsdx.cn/zsdx-website/2020mobile/images/xiaoyuanneican.png'
                }
            ]
        }
    }
}
</script>

<style lang="less" scoped>
.products-list {
    border-bottom: 1px solid transparent;
    .product-item {
        width: 7.02rem;
        margin: 0 auto;
        display: flex;
        align-items: center;
        padding-left: 0.24rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        margin-bottom: 0.4rem;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        .product-left {
            padding-right: 0.2rem;
            .product-title {
                font-size: 0.32rem;
                font-weight: 500;
                color: rgba(255, 255, 255, 1);
                margin-bottom: 0.28rem;
                width: 3.5rem;
            }
            .product-info {
                font-size: 0.24rem;
                font-weight: 400;
                color: rgba(255, 255, 255, 1);
                line-height: 0.36rem;
            }
            .qr-container {
                margin-top: 0.56rem;
                .qr-image {
                    width: 0.96rem;
                    height: 0.96rem;
                    img {
                        width: 100%;
                        height: 100%;
                    }
                }
                .qr-title {
                    font-size: 0.18rem;
                    font-weight: 400;
                    color: rgba(255, 255, 255, 1);
                    line-height: 0.18rem;
                    margin-top: 0.2rem;
                }
            }
            .view-more-btn {
                width: 1.64rem;
                height: 0.56rem;
                background: rgba(255, 255, 255, 0.7);
                border-radius: 0.36rem;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-top: 0.28rem;
            }
        }
        .product-right {
            width: 4.52rem;
            height: 4.12rem;
            background-position: right;
            background-size: 100%;
            background-repeat: no-repeat;
        }
        .vertical-introduce {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            margin-right: 0.24rem;
            .product-title {
                font-size: 0.32rem;
                font-weight: 500;
                color: rgba(255, 255, 255, 1);
                margin-bottom: 0.28rem;
            }
            .product-info {
                font-size: 0.24rem;
                font-weight: 400;
                color: rgba(255, 255, 255, 1);
                line-height: 0.36rem;
                margin-bottom: 0.2rem;
            }
            .product-shotcut {
                width: 5.82rem;
                height: 3.6rem;
                background-position: center;
                background-size: 100%;
                background-repeat: no-repeat;
            }
            .go-detail-btn {
                display: flex;
                width: 1.6rem;
                height: 0.56rem;
                background: rgba(255, 255, 255, 0.7);
                border-radius: 0.36rem;
                justify-content: center;
                align-items: center;
                font-size: 0.28rem;
                font-weight: 500;
                color: rgba(15, 67, 81, 1);
                line-height: 0.28rem;
                margin-top: 0.16rem;
            }
        }
    }
}
</style>
